﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for WGMMessage
/// </summary>
[Serializable]
public class WGMMessage
{
    public string SenderLogon { get; set; }    
    public string ReceiverLogon { get; set; }
    public object Message { get; set; }
    public MessageTypes MessageType { get; set; }
    public DateTime TimeStamp { get; set; }
    public WGMMessage()
    {
        //
        // TODO: Add constructor logic here
        //
    }
    public WGMMessage(string senderLogon, string receiverLogon, object message, MessageTypes messageType, DateTime timeStamp)
    {
        SenderLogon = senderLogon;
        ReceiverLogon = receiverLogon;
        Message = message;
        MessageType = messageType;
        TimeStamp = timeStamp;
    }
}
[Serializable]
public enum MessageTypes
{
    GLOBAL_MESSAGE = 0,
    PRIVATE_MESSAGE,
    NETWORK_CREATED,
    NETWORK_CLOSED,
    USER_LOGON,
    USER_LEAVING,
    USER_JOINED_NETWORK,
    USER_CHANGED_INFO,
    USER_BEING_KICKED,
    USER_CHANGED_ROOM,
    USER_LEFT_NETWORK,
    USER_CHANGED_IMAGE
}

